<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>

    let map = new Map();
    map.set('id', 1)
    map.set('name', '张三')
    map.set('age', 45)
    map.set('sex', 'nv')

    for (const [k, v] of map) {
        console.log(k, v)
    }
</script>
</body>
</html>